#ifndef __REGISTERS_H__
#define __REGISTERS_H__

#include "datatypes.h"
#include <iostream>

using std::cout;
using std::ostream;

/*typedef struct{
	unsigned long	_Id;
	unsigned long 	_document;
	tOffset			_offset;
} tRegAuxiliary;
*/

class AuxiliaryRegister{
	public:
	
	AuxiliaryRegister();
	~AuxiliaryRegister();
	tRegAuxiliary& getData(void);
	
	bool operator<( const AuxiliaryRegister& reg);
	
	void setId( unsigned long id ){
		data._Id = id;
	}
	void setDocument( unsigned long doc ){
		data._document = doc;
	}
	void setOffset( tOffset offset ){
		data._offset = offset;
	}
	
	void setData( tRegAuxiliary& sRegister );
	
	void reset(void)
	{
		memset(&data, 0, sizeof( data ));
	}
	

	private:
	tRegAuxiliary data;
};

#endif // __REGISTERS_H__
